﻿using HECore.Tenant.Contract.Models.Emoloyees.Dtos;
using HECore.Tenant.Contract.Models.Emoloyees.Inputs;
using Refit;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HECore.Tenant.Share
{
    /// <summary>
    /// 员工接口
    /// </summary>
    public interface IEmoloyeeService
    {
        /// <summary>
        /// 获取账号绑定的员工列表
        /// </summary>
        /// <param name="AccountId">账号Id</param>
        /// <returns></returns>
        [Get("/api/employee/lines/by-accountId")]
        Task<List<EmployeeDetailsDto>> GetAccountEmoloyees([Query] Guid AccountId);

        /// <summary>
        /// 获取员工权限
        /// </summary>
        /// <param name="EmployeeId">员工Id</param>
        /// <param name="TenantId">租户Id</param>
        /// <returns></returns>
        [Get("/api/employee/permissions")]
        Task<EmployeePermissionsDto> GetEmployeePermissions([Query] Guid EmployeeId, [Query] Guid TenantId);

        /// <summary>
        /// 设置员工Token
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        [Get("/api/employee/set-token")]
        Task SetToken(SetTokenInput input);
    }
}
